package com.edu.modules.baseinfo.task;

import com.edu.modules.baseinfo.service.WXService;
import com.edu.modules.comm.WXData;
import com.sari.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TimedTask {

    @Autowired
    private WXService wxService;

    @Scheduled(cron="0 0/60 * * * ?")
    public void getToken(){

//        String token = WXData.getToken();
//        wxService.updateToken(token);
//        wxService.updateTicket(WXData.getTicket(token));
    }

//    @Scheduled(cron="0 0 8 * * ?")
//    public void sendLessonMsg(){
//
//        timedTaskService.sendLessonMsg();
//    }
}
